-- GENERATED SPELL FOR [Crazed Shardling] --


function spell0_21936(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(34970,pUnit)
pUnit:RegisterEvent('Sorts_21936', 634, 1)
end

function Sorts_21936(pUnit, Event)
local choix_sorts_21936 = math.random(0, 0)
if choix_sorts_21936 == 0 then
pUnit:RegisterEvent('spell0_21936', 1, 1)
end
end

function mob21936_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21936', math.random(1500, 3000), 1)
end

function mob21936_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21936_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21936_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21936, 1, 'mob21936_Action')
RegisterUnitEvent(21936, 2, 'mob21936_Leave')
RegisterUnitEvent(21936, 3, 'mob21936_Kill')
RegisterUnitEvent(21936, 4, 'mob21936_Die')
